package org.linlinjava.litemall.db.dao;

import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallCategory;
import org.linlinjava.litemall.db.domain.LitemallCategoryExample;

import java.util.List;

public interface LitemallCategoryMapper {
    long countByExample(LitemallCategoryExample example);

    int deleteByExample(LitemallCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LitemallCategory record);

    int insertSelective(LitemallCategory record);

    List<LitemallCategory> selectByExample(LitemallCategoryExample example);

    LitemallCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LitemallCategory record, @Param("example") LitemallCategoryExample example);

    int updateByExample(@Param("record") LitemallCategory record, @Param("example") LitemallCategoryExample example);

    int updateByPrimaryKeySelective(LitemallCategory record);

    int updateByPrimaryKey(LitemallCategory record);

    /**
     * 查询商品类目
     */
    List<LitemallCategory> getAllCategory();

    int logicalDeleteByPrimaryKey(Integer id);

    List<LitemallCategory> selectList();
}